<template>
	<view class="flex-col page">
		<view class="flex-col group">
			<image :src="imgUrl+'16557826849664517298.png'" class="image_1" />
			<view class="flex-col items-center group_1">
				<text class="text_1">保存成功</text>
				<text class="text_3">保存时间：{{getNowTime()}}</text>
			</view>
			<view class="flex-col items-center group_2">
				<view class="flex-col items-center button" @click="go('/pages/my/report/report')"><text
						class="text_4">查看报告</text></view>
				<view class="flex-col items-center button_1" @click="toHome"><text
						class="text_5">返回首页</text></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				imgUrl:this.$IMG_URL,
				
			};
		},
   methods:{
		// 获取当前时间
			getNowTime() {
			  const yy = new Date().getFullYear()
			  const MM = (new Date().getMonth() + 1) < 10 ? '0' + (new Date().getMonth() + 1) : (new Date().getMonth() + 1)
			  const dd = new Date().getDate() < 10 ? '0' + new Date().getDate() : new Date().getDate()
			  const HH = new Date().getHours() < 10 ? '0' + new Date().getHours() : new Date().getHours()
			  const mm = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes()
			  const ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds()
			  return yy + '-' + MM + '-' + dd + ' ' + HH + ':' + mm + ':' + ss
			}
			,
			 toHome(){
				 console.log(11);
				 uni.switchTab({
					 url:"/pages/index/index"
				 })
			 }
		}
		
	};
</script>

<style scoped lang="scss">
	.page {
		background-color: #ffffffff;
		width: 100%;
		overflow-y: auto;
		overflow-x: hidden;
		height: 100%;
	}

	.group {
		padding: 88rpx 0 463rpx;
		flex: 1 1 auto;
		overflow-y: auto;
	}

	.image_1 {
		align-self: center;
		width: 250rpx;
		height: 180rpx;
	}

	.group_1 {
		margin-top: 37rpx;
	}

	.group_2 {
		margin-top: 91rpx;
	}

	.text_1 {
		color: #000000;
		font-size: 32rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 38rpx;
	}

	.text_2 {
		margin-top: 38rpx;
		color: #666666;
		font-size: 28rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 33rpx;
	}

	.text_3 {
		margin-top: 50rpx;
		color: #666666;
		font-size: 28rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 33rpx;
	}

	.button {
		display: flex;
		justify-content: center;
		align-self: center;
		height: 39px;
		background-color: #1d6aff;
		border-radius: 36rpx;
		width: 320rpx;
	}

	.button_1 {
		margin-top: 32rpx;
		display: flex;
		align-self: center;
		justify-content: center;

		height: 39px;
		border: 1px #1d6aff solid;
		border-radius: 36rpx;
		background-color: #ffffff;
		width: 320rpx;
	}

	.text_4 {
		color: #ffffff;
		font-size: 28rpx;
		font-family: '.AppleSystemUIFont';
	}

	.text_5 {
		color: #1d6aff;
		font-size: 28rpx;
		font-family: '.AppleSystemUIFont';
	}
</style>
